<html>

<head><title>Your typical HTML page</title></head>

<script>
  function getFocusedElement() {
    return document.activeElement ? document.activeElement.id : "";
  }
</script>

<body>

  <h1>Hello</h1>
  Search:
  <form name="f">
    <input name="q" size="55" title="Google Search" value="" id="textEdit"><br>
    <input type="button" value="Search" id="searchButton">
    <input type="button" value="I am feeling lucky" id="luckyButton">
  </form>
  <br><br>

  <a href="http://www.google.com" id="googleLink">Google</a>&nbsp;&nbsp;
  <a href="http://mail.google.com" id="gmailLink">GMail</a>&nbsp;&nbsp;
  <a href="http://maps.google.com" id="gmapLink">GMap</a>

</body>

</html>
